/**
* This is about <code>org.shoebox.guacamole.view.GuaMovieClip</code>.
* {@link www.hyperfiction.fr}
* @author shoe[box]
*/

package org.shoebox.guacamole.view {

	import org.shoebox.guacamole.materials.abstracts.AMaterial;
	import org.shoebox.utils.logger.Logger;
	
	/**
	* org.shoebox.guacamole.view.GuaMovieClip
	* @author shoebox
	*/
	public class GuaMovieClip extends GuaSprite{
		
		public var currentLabel		: String;
		public var currentFrame		: int = 0;
		
		// -------o constructor
		
			/**
			* Constructor of the GuaMovieClip class
			*
			* @public
			* @return	void
			*/
			public function GuaMovieClip( width : int , height : int , mat : AMaterial , tessX : int = 1 , tessY : int = 1 ) : void {
				super( width , height , mat , tessX , tessY );
			}

		// -------o public
			
			/**
			* goToAndPlay function
			* @public
			* @param 
			* @return
			*/
			final public function gotoAndPlay( to : * , iFrame : int = 1 ) : void {
				if( to is String )
					currentLabel = to as String;
					currentFrame = iFrame - 1;
			}
			
		// -------o protected

		// -------o misc

			public static function trc(...args : *) : void {
				Logger.log(GuaMovieClip, args);
			}
	}
}
